package com.demo.plan.controller;

import com.demo.plan.common.Result;
import com.demo.plan.entity.User;
import com.demo.plan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dev")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/getById")
    public Result getById() {
        User user = userService.getById();
        return Result.suc(user);
    }

}
